<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


	<link rel="stylesheet" href="<%=path %>/css/common.css">
	<link rel="stylesheet" href="<%=path %>/css/index.css">
	<link rel="stylesheet" href="<%=path %>/css/footer.css">
	<link rel="stylesheet" href="<%=path %>/css/bootstrap.min.css" >
	<!-- 重设密码 -->
	<link rel="stylesheet" href="<%=path %>/css/resetpwd.css">
	<!-- 消息提示 --> 
	<link rel="stylesheet" href="<%=path %>/css/alertify/alertify.core.css">
	<link rel="stylesheet" href="<%=path %>/css/alertify/alertify.default.css" id="toggleCSS">
	<!-- 分页  css -->
	<!-- 这里这个 css 如果导入对其他样式影响较大，所以在需要的页面单独引用 -->
	<%-- <link rel="stylesheet" href="<%=path%>/css/bootstrap-combined.css"> --%>

	<!-- 详情页面 -->
	<link rel="stylesheet" href="<%=path %>/css/blog_details.css"> 


	<script src="<%=path %>/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/bootstrap.min.js"></script>
	<!-- 信息提示 -->
	<script type="text/javascript" src="<%=path %>/js/alertify/alertify.min.js"></script>
	<!-- 邮箱自动补全 -->
	<script src="<%=path %>/js/emailautocomplete2.js"></script>
    <!-- 时间显示 js -->
	<script type="text/javascript" src="<%=path%>/js/1.js"></script>
	<!-- qq 在线聊天 -->
	<script src="<%=path%>/js/qqonline.js"></script>
	<!-- 分享到 -->
	<!-- 校验js  -->
	<script type="text/javascript" src="<%=path%>/js/is.js"></script>
	<!-- 图片延迟加载 js -->
	<script type="text/javascript" src="<%=path%>/js/jquery.lazyload.js"></script>

	<!-- 百度地图 js -->
	<script type="text/javascript" src="<%=path%>/js/baidumap/baidumapak.js"></script>
	<script src="<%=path%>/js/baidumap/CurveLine.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/baidumap/SearchInfoWindow_min.js"></script>
	<!-- blog list js -->
	<script src="<%=path%>/js/blog_list.js"></script> 
	<script src="<%=path%>/js/news_list.js"></script> 
	<!-- 分页 -->
	<script src="<%=path%>/js/bootstrap-paginator.js"></script> 
	<!-- cookie -->
	<script src="<%=path%>/js/cookieUtils.js"></script> 
	
<script>
	/**
	 * 信息提示帮助方法
	 */
	function reset() {
		$("#toggleCSS").attr("href", "<%=path %>/css/alertify/alertify.default.css");
		alertify.set({
			labels : {
				ok : "OK",
				cancel : "Cancel"
			},
			delay : 3000,
			buttonReverse : false,
			buttonFocus : "ok"
		});
	}
	
	/**
	 * 
	 */


	
	function alertError(msg){
		reset();
		alertify.error(msg);
	}
	
	function alertSuccess(msg){
		reset();
		alertify.success(msg);
	}
	
	function alertConfirm(confimMsg,okMsg,noMsg){
		reset();
		alertify.confirm(confimMsg, function (e) {
			if (e) {
				alertify.success(okMsg);
				return true;
			} else {
				alertify.error(noMsg);
				return false;
			}
		});
	}
	
	/* 多说  */
	var duoshuoQuery = {short_name:"lizi2",sso: { 
        login: "http://127.0.0.1:8080/geek/user_doNotNeedSession_loginCallback.action",//替换为你自己的回调地址
        logout: "http://127.0.0.1:8080/geek/user_doNotNeedSession_logout.action"//替换为你自己的回调地址
	}};
		(function() {
			var ds = document.createElement('script');
			ds.type = 'text/javascript';ds.async = true;
			ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
			ds.charset = 'UTF-8';
			(document.getElementsByTagName('head')[0] 
			 || document.getElementsByTagName('body')[0]).appendChild(ds);
		})();

		Date.prototype.format = function(format) {  
		    /* 
		     * eg:format="yyyy-MM-dd hh:mm:ss";  
		     */
		     console.log(this);
		    var o = {  
		        "M+" : this.getMonth() + 1, // month  
		        "d+" : this.getDate(), // day  
		        "h+" : this.getHours(), // hour   
		        "m+" : this.getMinutes(), // minute  
		        "s+" : this.getSeconds(), // second  
		        "q+" : Math.floor((this.getMonth() + 3) / 3), // quarter  
		        "S" : this.getMilliseconds()  
		        // millisecond  
		    }  
		  
		    if (/(y+)/.test(format)) {  
		        format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4  
		                        - RegExp.$1.length));  
		    }  
		  
		    for (var k in o) {  
		        if (new RegExp("(" + k + ")").test(format)) {  
		            format = format.replace(RegExp.$1, RegExp.$1.length == 1  
		                            ? o[k]  
		                            : ("00" + o[k]).substr(("" + o[k]).length));  
		        }  
		    }  
		    console.log(format);
		    return format;  
		}
		
		
</script>